package com.example.Result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AllResult {
    private int code;
    private String msg;
    private Object data;
    public static AllResult allResult(int code, String msg, Object data){
        System.out.println(code);
        return new AllResult(code,msg,data);
    }
}
